public class Main {

	public static void main(String[] args) throws Exception {
		// Log program start in main log
		Logger.INSTANCE.setLog("main", "Program started execution\n");
		
		// Create new CustomerQueue object to store the list of Customers in this queue
		CustomerQueue queue = new CustomerQueue();
		// Read input file for customers using relative path
		queue.readFile("CustomerInput.csv");
		
		// Create new ParcelList object to store the list of Parcels at this depot
		ParcelList parcels = new ParcelList();
		// Read input file for parcels using relative path
		parcels.readFile("ParcelInput.csv");
		
		// Create new GUI object and pass in the queue and list of parcels
		GUI window = new GUI(queue,parcels);
		
		// Make the GUI object monitor the dynamic objects (queues, parcels, workers) for changes
		queue.addObserver(window);
		parcels.addObserver(window);
	}
	
}
